#!/bin/bash 
if [ -f "/mysrc/go.mod" ]; then
    echo "#!/bin/bash" > "/opt/s"
    echo "cd /mysrc/ " >> "/opt/s"
    echo "bee run" >> "/opt/s"
    go mod verify  
    bee run
fi


# if [ -f "/mysrc/go.mod" ]; then
#     if [ ! -f "/opt/install.lock" ]; then
#         echo 'init 11111'
#         go mod verify
#         echo 'init 22222'
#         touch "/opt/install.lock"
#         echo 'init 3333333 reoot'
#         reboot
#     else
#         echo 'init 4444444 '
#         rm -f "/opt/install.lock"
#         echo "#!/bin/bash" >>"/opt/s"
#         echo "bee run" >"/opt/s"

#     fi
# else
#     echo 'go.mod file  not  exist'
# fi
